Skip to content

chore(deps): pin Microsoft.OpenApi to 2.7.5 (GHSA-v5pm-xwqc-g5wc)#113

Merged
windischb merged 1 commit into
developfrom
chore/bump-microsoft-openapi
Jul 11, 2026
Merged

chore(deps): pin Microsoft.OpenApi to 2.7.5 (GHSA-v5pm-xwqc-g5wc)#113
windischb merged 1 commit into
developfrom
chore/bump-microsoft-openapi

Conversation

@windischb

Copy link
Copy Markdown
Contributor

Why

The CI step "Audit NuGet dependencies for known CVEs" fails on every PR since GHSA-v5pm-xwqc-g5wc published: Microsoft.AspNetCore.OpenApi (10.0.8 and 10.0.9) floats Microsoft.OpenApi at [2.0.0, ), which NuGet resolves to the vulnerable 2.0.0 (High — circular schema references may terminate OpenAPI parsing). develop was last green on Jul 1, before the advisory landed — any run today fails identically, including on #112.

Fix

Pin the transitive to the patched 2.7.5 (same 2.x line, first patched version per the advisory) via a direct PackageReference in Modgud.Api — nearest-wins lifts the resolved version for the whole graph (Api, Api.Tests, Tests.Unit). Comment in Directory.Packages.props documents when the pin can be dropped (once AspNetCore.OpenApi requires >= 2.7.5).

Verified locally

  • dotnet list package --vulnerable --include-transitive (the exact CI audit): clean
  • Full solution build: 0 errors
  • Unit suite: 1269 green; cold-start integration tests (app boot incl. OpenAPI pipeline): green

Unblocks CI for #112 and all future PRs.

🤖 Generated with Claude Code

Microsoft.AspNetCore.OpenApi 10.0.x floats Microsoft.OpenApi at [2.0.0, ),
which resolves to 2.0.0 — flagged High by the CI NuGet audit since the
advisory published (circular schema references may terminate OpenAPI
parsing). Both 10.0.8 and 10.0.9 carry the same open range, so bumping
the parent doesn't help; pin the transitive directly to the patched 2.7.5
via a direct reference from Modgud.Api (nearest-wins lifts the whole graph).

Unblocks CI for every open PR; develop itself was last green before the
advisory landed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@windischb windischb merged commit f9a013e into develop Jul 11, 2026
8 checks passed
@windischb windischb deleted the chore/bump-microsoft-openapi branch July 11, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant